package org.easyreport.report;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * 
 * @author ravi.soni
 *
 */
@Entity
@Table(name="REPORT")
public class ReportImpl implements Report {
	
	@Id
    @Basic(optional = false)
    @SequenceGenerator(name = "REPORT_SEQ", sequenceName = "REPORT_SEQ", initialValue = 1, allocationSize=1)
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "REPORT_SEQ")
	@Column(name="ID")
	private Long id;
	@Column(name="NAME") 
	private String name;
	
	@Column(name="TYPE") 
	@Enumerated(EnumType.STRING)
	private ReportSourceType type;
	
	@Column(name="OWNER_ID")
	private Long ownerId;
	
	@Column(name="DESCRIPTION")
	private String description;
	
	@Column(name="CATEGORY_ID")
	private Long categoryId;

	public Long getId() {
		// TODO Auto-generated method stub
		return null;
	}
	

}
